@extends('layouts.adminlayout')

@section('main')
<section class="content">
    <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
        <div class="box box-primary">
            <div class="box-header">
                <h3 class="box-title">Khai giảng Khoá Thi <small>Khoá thi</small></h3>
                </div><!-- /.box-header -->
                    <div class="box-body">
                    {{ Form::model($schedule, array('method' => 'PATCH', 'route' => array('schedules.update', $schedule->id))) }}
                        <div class="form-group">
                            {{ Form::label('event_name', 'Mã khóa thi') }}
                            {{ Form::text('event_name',null,array('required','class'=>'form-control')) }}
                        </div>
                        <div class="form-group">
                            {{ Form::label('event_type', 'Loại khóa thi') }}
                            <select name="event_type" id="inputEvent_type" class="form-control">
                                <option value="">Chọn</option>
                                <option value="A" <?php if($schedule->event_type == 'A') echo 'selected';?>>A</option>
                                <option value="B" <?php if($schedule->event_type == 'B') echo 'selected';?>>B</option>
                            </select> 
                        </div>
                        <div class="form-group">
                            {{ Form::label('start_time', 'Thời gian bắt đầu đăng ký thi') }}
                            {{ Form::text('start_time',null,array('required','class'=>'form-control','id'=>'start_time')) }}
                        </div>
                        <div class="form-group">
                            {{ Form::label('end_time', 'Thời gian kết thúc đăng ký thi') }}
                            {{ Form::text('end_time',null,array('required','class'=>'form-control','id'=>'end_time')) }}
                        </div>
                        <div class="form-group">
                            {{ Form::label('description', 'Mô tả') }}
                            {{ Form::text('description',null,array('required','class'=>'form-control')) }}
                        </div>
                        <div class="form-footer">
                            {{ Form::submit('Cập nhật', array('class' => 'btn btn-info')) }}
                            {{ link_to_route('schedules.index', 'huỷ', null, array('class' => 'btn btn-default')) }}
                        </div>
                        {{ Form::close() }}
                        <br>
                        @if ($errors->any())
                            {{ implode('', $errors->all('<div class="error callout callout-danger">:message</div>')) }}
                        @endif
                    </div>
                </div>
            </div>
</section>
@stop



